<?php 
if (auth_errors() || validation_errors()){
	Template::set_message(auth_errors() . validation_errors(), 'error');
}
?>

<?php echo form_open('login'); ?>
<fieldset>
<div class="clearfix">
	<label for="login_value"><?php echo $this->settings_lib->item('auth.login_type') == 'both' ? 'Username/Email' : ucwords($this->settings_lib->item('auth.login_type')) ?></label>
	<div class="input">
		<input type="text" name="login" id="login_value" value="<?php echo set_value('login'); ?>" tabindex="1" placeholder="<?php echo $this->settings_lib->item('auth.login_type') == 'both' ? lang('bf_username') .'/'. lang('bf_email') : ucwords($this->settings_lib->item('auth.login_type')) ?>" />
	</div>
</div>
<div class="clearfix">
	<label for="password"><?php echo lang('bf_password'); ?></label>
	<div class="input">
		<input type="password" name="password" id="password" value="" tabindex="2" placeholder="<?php echo lang('bf_password'); ?>" />
	</div>
</div>
<div class="clearfix">	
	<?php if ($this->settings_lib->item('auth.allow_remember')) : ?>
	<div class="input">
		<input type="checkbox" name="remember_me" id="remember_me" value="1" tabindex="3" /> 		
		<label for="remember_me"><?php echo lang('us_remember_note'); ?></label>
	</div>
	<?php endif; ?>
</div>
<div class="actions">
	<input type="submit" name="submit" id="submit" class="btn primary" value="Let Me In" tabindex="5" />
	<p>
		<?php if ($this->settings_lib->item('auth.allow_register')) : ?>
			<?php echo lang('us_no_account'); ?> <?php echo anchor('/register', lang('us_sign_up')); ?> &nbsp;&nbsp; &#8226; &nbsp;&nbsp;
		<?php endif; ?>

		<?php echo anchor('/forgot_password', lang('us_forgot_your_password')); ?>
	</p>
</div>
</fieldset>
<?php echo form_close(); ?>
		

	
		